//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.carhailing.common.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
@Data
@TableName("coupon_active")
public class CouponActive {
    @TableId("coupon_active_id")
    private Long couponActiveId;
    @TableField("coupon_active_name")
    private String couponActiveName;
    @TableField("coupon_active_status")
    private Integer couponActiveStatus;
    @TableField("coupon_active_start_time")
    private Date couponActiveStartTime;
    @TableField("coupon_active_end_time")
    private Date couponActiveEndTime;
    @TableField("coupon_schedule_id")
    private Long couponScheduleId;
    @TableField("coupon_id")
    private Long couponId;
    @TableField(
            exist = false
    )
    private Integer couponsTotal;
    @TableField(
            exist = false
    )
    private Integer couponsClaimed;

    public CouponActive() {
    }

    public Long getCouponActiveId() {
        return this.couponActiveId;
    }

    public String getCouponActiveName() {
        return this.couponActiveName;
    }

    public Integer getCouponActiveStatus() {
        return this.couponActiveStatus;
    }

    public Date getCouponActiveStartTime() {
        return this.couponActiveStartTime;
    }

    public Date getCouponActiveEndTime() {
        return this.couponActiveEndTime;
    }

    public Long getCouponScheduleId() {
        return this.couponScheduleId;
    }

    public Long getCouponId() {
        return this.couponId;
    }

    public Integer getCouponsTotal() {
        return this.couponsTotal;
    }

    public Integer getCouponsClaimed() {
        return this.couponsClaimed;
    }

    public void setCouponActiveId(final Long couponActiveId) {
        this.couponActiveId = couponActiveId;
    }

    public void setCouponActiveName(final String couponActiveName) {
        this.couponActiveName = couponActiveName;
    }

    public void setCouponActiveStatus(final Integer couponActiveStatus) {
        this.couponActiveStatus = couponActiveStatus;
    }

    public void setCouponActiveStartTime(final Date couponActiveStartTime) {
        this.couponActiveStartTime = couponActiveStartTime;
    }

    public void setCouponActiveEndTime(final Date couponActiveEndTime) {
        this.couponActiveEndTime = couponActiveEndTime;
    }

    public void setCouponScheduleId(final Long couponScheduleId) {
        this.couponScheduleId = couponScheduleId;
    }

    public void setCouponId(final Long couponId) {
        this.couponId = couponId;
    }

    public void setCouponsTotal(final Integer couponsTotal) {
        this.couponsTotal = couponsTotal;
    }

    public void setCouponsClaimed(final Integer couponsClaimed) {
        this.couponsClaimed = couponsClaimed;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof CouponActive)) {
            return false;
        } else {
            CouponActive other = (CouponActive)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$couponActiveId = this.getCouponActiveId();
                    Object other$couponActiveId = other.getCouponActiveId();
                    if (this$couponActiveId == null) {
                        if (other$couponActiveId == null) {
                            break label119;
                        }
                    } else if (this$couponActiveId.equals(other$couponActiveId)) {
                        break label119;
                    }

                    return false;
                }

                Object this$couponActiveStatus = this.getCouponActiveStatus();
                Object other$couponActiveStatus = other.getCouponActiveStatus();
                if (this$couponActiveStatus == null) {
                    if (other$couponActiveStatus != null) {
                        return false;
                    }
                } else if (!this$couponActiveStatus.equals(other$couponActiveStatus)) {
                    return false;
                }

                label105: {
                    Object this$couponScheduleId = this.getCouponScheduleId();
                    Object other$couponScheduleId = other.getCouponScheduleId();
                    if (this$couponScheduleId == null) {
                        if (other$couponScheduleId == null) {
                            break label105;
                        }
                    } else if (this$couponScheduleId.equals(other$couponScheduleId)) {
                        break label105;
                    }

                    return false;
                }

                Object this$couponId = this.getCouponId();
                Object other$couponId = other.getCouponId();
                if (this$couponId == null) {
                    if (other$couponId != null) {
                        return false;
                    }
                } else if (!this$couponId.equals(other$couponId)) {
                    return false;
                }

                label91: {
                    Object this$couponsTotal = this.getCouponsTotal();
                    Object other$couponsTotal = other.getCouponsTotal();
                    if (this$couponsTotal == null) {
                        if (other$couponsTotal == null) {
                            break label91;
                        }
                    } else if (this$couponsTotal.equals(other$couponsTotal)) {
                        break label91;
                    }

                    return false;
                }

                Object this$couponsClaimed = this.getCouponsClaimed();
                Object other$couponsClaimed = other.getCouponsClaimed();
                if (this$couponsClaimed == null) {
                    if (other$couponsClaimed != null) {
                        return false;
                    }
                } else if (!this$couponsClaimed.equals(other$couponsClaimed)) {
                    return false;
                }

                label77: {
                    Object this$couponActiveName = this.getCouponActiveName();
                    Object other$couponActiveName = other.getCouponActiveName();
                    if (this$couponActiveName == null) {
                        if (other$couponActiveName == null) {
                            break label77;
                        }
                    } else if (this$couponActiveName.equals(other$couponActiveName)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$couponActiveStartTime = this.getCouponActiveStartTime();
                    Object other$couponActiveStartTime = other.getCouponActiveStartTime();
                    if (this$couponActiveStartTime == null) {
                        if (other$couponActiveStartTime == null) {
                            break label70;
                        }
                    } else if (this$couponActiveStartTime.equals(other$couponActiveStartTime)) {
                        break label70;
                    }

                    return false;
                }

                Object this$couponActiveEndTime = this.getCouponActiveEndTime();
                Object other$couponActiveEndTime = other.getCouponActiveEndTime();
                if (this$couponActiveEndTime == null) {
                    if (other$couponActiveEndTime != null) {
                        return false;
                    }
                } else if (!this$couponActiveEndTime.equals(other$couponActiveEndTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof CouponActive;
    }

    public int hashCode() {
        int result = 1;
        Object $couponActiveId = this.getCouponActiveId();
        result = result * 59 + ($couponActiveId == null ? 43 : $couponActiveId.hashCode());
        Object $couponActiveStatus = this.getCouponActiveStatus();
        result = result * 59 + ($couponActiveStatus == null ? 43 : $couponActiveStatus.hashCode());
        Object $couponScheduleId = this.getCouponScheduleId();
        result = result * 59 + ($couponScheduleId == null ? 43 : $couponScheduleId.hashCode());
        Object $couponId = this.getCouponId();
        result = result * 59 + ($couponId == null ? 43 : $couponId.hashCode());
        Object $couponsTotal = this.getCouponsTotal();
        result = result * 59 + ($couponsTotal == null ? 43 : $couponsTotal.hashCode());
        Object $couponsClaimed = this.getCouponsClaimed();
        result = result * 59 + ($couponsClaimed == null ? 43 : $couponsClaimed.hashCode());
        Object $couponActiveName = this.getCouponActiveName();
        result = result * 59 + ($couponActiveName == null ? 43 : $couponActiveName.hashCode());
        Object $couponActiveStartTime = this.getCouponActiveStartTime();
        result = result * 59 + ($couponActiveStartTime == null ? 43 : $couponActiveStartTime.hashCode());
        Object $couponActiveEndTime = this.getCouponActiveEndTime();
        result = result * 59 + ($couponActiveEndTime == null ? 43 : $couponActiveEndTime.hashCode());
        return result;
    }

    public String toString() {
        return "CouponActive(couponActiveId=" + this.getCouponActiveId() + ", couponActiveName=" + this.getCouponActiveName() + ", couponActiveStatus=" + this.getCouponActiveStatus() + ", couponActiveStartTime=" + this.getCouponActiveStartTime() + ", couponActiveEndTime=" + this.getCouponActiveEndTime() + ", couponScheduleId=" + this.getCouponScheduleId() + ", couponId=" + this.getCouponId() + ", couponsTotal=" + this.getCouponsTotal() + ", couponsClaimed=" + this.getCouponsClaimed() + ")";
    }
}
